//引入axios
import axios from 'axios'

export default {
    httpRequest(methods,url,data){
        return axios({
          methods,
          url,
          data,
          timeout:10000,
          headers:{
            'content-type': 'application/json;charset=utf-8'
          }
        })
        .then(response=>{
          return response.data
        })
      }
}